<template>
  <div>
    <div class="recommend-title">周末去哪儿</div>
    <ul style="margin-top: 10;">
      <li class="item" v-for="(item, index) of weekendList" :key=index>

          <img class="item-img" :src="item.imgUrl" />
          <div class="item-info">
            <p class="item-title">{{item.title}}</p>
            <p class="item-desc">{{item.desc}}</p>
          </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default{
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  }
}
</script>
<style lang="stylus" scoped>
  @import '../../../assets/styles/mixins.styl'
.recommend-title
  line-height .8rem
  background #eee
  text-indent .2rem
.item
  overflow hidden
  height 4.1rem
  .item-img
    width 100%
    height 2.8rem
 .item-info
    flex 1
    padding .1rem
    min-width 0
    margin-left .14rem
  .item-title
    line-height .54rem
    font-size .28rem
    color #212121
    ellipsis()
  .item-desc
    width 5.8rem
    font-size .20rem
    color #616161
    margin-top .05rem
    ellipsis()
</style>
